import Layout from '@/layout'

/**
 * 数据监控相关路由
 */
const monitorRouter = {
  path: '/monitor',
  name: 'monitor',
  component: Layout,
  alwaysShow: true,
  meta: { title: '数据监控工具', icon: 'el-icon-monitor' },
  children: [
    {
      path: 'redis',
      name: 'RedisMain',
      component: () => import('@/views/monitor/redis/redisMain'),
      meta: { title: 'Redis监控', icon: 'el-icon-coin', 'pluginId': 'tools-redis' }
    },
    {
      path: 'zookeeper',
      name: 'zookeeper',
      component: () => import('@/views/monitor/zookeeper'),
      meta: { title: 'Zookeeper', icon: 'tree', 'pluginId': 'tools-zookeeper' }
    },
    {
      path: 'kafkaGroup',
      name: 'kafkaGroup',
      component: () => import('@/views/monitor/kafkagroup'),
      meta: { title: 'kafka 消费组', icon: 'el-icon-notebook-2', 'pluginId': 'tools-kafka' }
    },
    {
      path: 'kafkaTopic',
      name: 'kafkaTopic',
      component: () => import('@/views/monitor/kafkatopic'),
      meta: { title: 'kafka 主题管理', icon: 'el-icon-notebook-2', 'pluginId': 'tools-kafka' }
    },
    {
      path: 'elasticsearch',
      name: 'elasticsearch',
      component: () => import('@/views/monitor/elasticsearch'),
      meta: { title: 'ES数据监控', icon: 'el-icon-eleme', 'pluginId': 'tools-elasticsearch' }
    },
    {
      path: 'mongo',
      name: 'mongo',
      component: () => import('@/views/monitor/mongo'),
      meta: { title: 'Mongo数据监控', icon: 'el-icon-document', 'pluginId': 'tools-mongo' }
    },
    {
      path: 'quartz',
      name: 'quartz',
      component: () => import('@/views/monitor/quartz'),
      meta: { title: 'Quartz 任务管理', icon: 'el-icon-s-operation', 'pluginId': 'tools-quartz' }
    },
    {
      path: 'jvm',
      name: 'jvm',
      component: () => import('@/views/monitor/jvm'),
      meta: { title: 'JVM 监控', icon: 'el-icon-s-operation', 'pluginId': 'tools-jvm' }
    },
    {
      path: 'fastdfs',
      name: 'fastdfs',
      component: () => import('@/views/monitor/fastdfs'),
      meta: { title: 'Fastdfs', icon: 'el-icon-s-operation', 'pluginId': 'tools-fastdfs' }
    }

  ]
}

export default monitorRouter
